<?php
	$wxDetail = $data['wxDetail'];
	$wxRankByDay = $data['wxRankByDay'];
	$wxRankByWeek = $data['wxRankByWeek'];
	$wxIndexWeek = $data['wxIndexWeek'];
	$wxArticleWeek = $data['wxArticleWeek'];
	$wxArticleDay = $data['wxArticleDay'];
?>
	

<style>
#detail{}
#detail-info{height:200px;}
#detail-data{height:300px;}


.msg-tips{}
.msg-tips h3{margin:10px 0px;font-size:18px;}
.msg-tips div{display:inline-block;width:140px;padding-left:18px;line-height:30px;}
.msg-tips div b{}

</style>





<div id="detail">
	<div id="detail-info">
		<div>
			<div class="n-right" style="width:400px;">
				<!--b><?=$wxDetail['groupNameFirst']?>：</b-->
					
				<div style="background-color:#3891CA;text-align:center;padding:20px;font-size:30px;color:#fff;margin:10px 100px;">
					<?=$wxDetail['groupName']?>
				</div>
			</div>
			
						
			<div style="float:left;width:120px;text-align:center;padding:10px 0px;background-color:#f4f4f4;">
				<img src="<?=$wxDetail['face_url']?>" /><br />
				<?=$wxDetail['wxname']?><br />
				<?=$wxDetail['wxid']?><br />
			</div>
			


			<div style="margin-left:140px;width:600px;">
				
				<div class="n-sep-top">
					<b>认证：</b><?=$wxDetail['auth']?>
				</div>
				
				
				<div class="n-sep-top">
					<b>简介：</b><?=$wxDetail['description']?>
				</div>
			</div>
			
		</div>



	</div>
	<div id="detail-data">

		<div class="msg-tips" style="float:left;width:500px;">
			<h3>昨日</h3>
				<div>
					总阅读数<b><?=$wxRankByDay['all_read_num']?></b>,
				</div>
				<div>
					总点赞数<b><?=$wxRankByDay['all_like_num']?></b>,
				</div>
				<div>
					中自榜指数<b><?=$wxRankByDay['weixin_index']?></b>
				</div>
				<div>
					篇均阅读数<b><?=$wxRankByDay['average_read_num']?></b>,
				</div>
				<div>
					最高阅读数<b><?=$wxRankByDay['max_read_num']?></b>
				</div>
				
			<h3>一周</h3>
				<div>
					阅读数：<b><?=$wxRankByWeek['read_sum']?></b>,
				</div>
				<div>
					点赞数：<b><?=$wxRankByWeek['like_sum']?></b>
				</div>
		</div>



		<div id="main" style="margin-left:540px;height:200px;border:1px solid #999;">
		</div>

		<script>
		<?php
		
		$charts = n_mod('charts');
		$charts->type('line');
		$charts->toolbox();
		$charts->legend("一周指数");
		$charts->x(array_keys($wxIndexWeek));
		$charts->data("一周指数",'line',array_values($wxIndexWeek));
		$charts->show();
		?>
		</script>



		<script src="<?=n_js('charts','echarts')?>"></script>
		<script type="text/javascript">
			require.config({
				paths: {
					echarts: '/charts/js'
				}
			});
			require(
				[
				'echarts',
				'echarts/chart/bar',
				'echarts/chart/line'
				],
				function (ec) {
					var myChart = ec.init(document.getElementById('main'));
					myChart.setOption(option);
				}
			);
		</script>




	</div>
</div>





<div style="margin-bottom:50px;">
	<dl class="n-box" style="float:left;width:580px;">
		<dt class="n-box-head"><b>一周热门</b></dt>
		<dd class="n-box-body">
			<ul class="a-hot-article">
				
			<?php

			foreach($wxArticleWeek as $key=>$val){
			?>
				<li class="a-bottom-line n-sep-top">
					<p style="line-height: 30px;">
						<a href="<?=$val['url']?>" target="_blank">
							<?=$val['title']?>
						</a></p>
					<p class="a-summry">
						<?=$val['content168']?>
					</p>
					<p class="n-sep-bottom n-sep-top">
						<span class="n-right">
							<?=date('Y-m-d H:i:s',$val['ptime'])?>
						</span>
						阅读数<b><?=$val['read_num']?></b>，
						点赞数<b><?=$val['like_num']?></b>
						</p>
				</li>
			<?php
			}
			?>
			</ul>
		</dd>
	</dl>


	<dl class="n-box" style="margin-left:620px;">
		<dt class="n-box-head"><b>最新发布</b></dt>
		<dd class="n-box-body">
			<ul class="a-hot-article">
				
			<?php

			foreach($wxArticleDay as $key=>$val){
			?>
				<li class="a-bottom-line n-sep-top">
					<p style="line-height: 30px;">
						<a href="<?=$val['url']?>" target="_blank">
							<?=$val['title']?>
						</a></p>
					<p class="a-summry">
						<?=$val['content168']?>
					</p>
					<p class="n-sep-bottom n-sep-top">
						<span class="n-right">
							<?=date('Y-m-d H:i:s',$val['ptime'])?>
						</span>
						阅读数<b><?=$val['read_num']?></b>，
						点赞数<b><?=$val['like_num']?></b>
						</p>
				</li>
			<?php
			}
			?>
			</ul>
		</dd>
	</dl>

</div>



